CreateType(String typeName) { validateNotEmpty(typeName, "Custom type name"); validateNotKeyWord( typeName, String.format( "The custom type name '%s' is not allowed because it is a reserved keyword", typeName)); this.typeName = typeName; }
CreateType(String keyspaceName, String typeName) { validateNotEmpty(keyspaceName, "Keyspace name"); validateNotEmpty(typeName, "Custom type name"); validateNotKeyWord( keyspaceName, String.format( "The keyspace name '%s' is not allowed because it is a reserved keyword", keyspaceName)); validateNotKeyWord( typeName, String.format( "The custom type name '%s' is not allowed because it is a reserved keyword", typeName)); this.typeName = typeName; this.keyspaceName = Optional.fromNullable(keyspaceName); }
CreateType(String typeName) { validateNotEmpty(typeName, "Custom type name"); validateNotKeyWord(typeName, String.format("The custom type name '%s' is not allowed because it is a reserved keyword", typeName)); this.typeName = typeName; }
CreateType(String keyspaceName, String typeName) { validateNotEmpty(keyspaceName, "Keyspace name"); validateNotEmpty(typeName, "Custom type name"); validateNotKeyWord(keyspaceName, String.format("The keyspace name '%s' is not allowed because it is a reserved keyword", keyspaceName)); validateNotKeyWord(typeName, String.format("The custom type name '%s' is not allowed because it is a reserved keyword", typeName)); this.typeName = typeName; this.keyspaceName = Optional.fromNullable(keyspaceName); }
CreateType(String typeName) { validateNotEmpty(typeName, "Custom type name"); validateNotKeyWord(typeName, String.format("The custom type name '%s' is not allowed because it is a reserved keyword", typeName)); this.typeName = typeName; }
CreateType(String typeName) { validateNotEmpty(typeName, "Custom type name"); validateNotKeyWord(typeName, String.format("The custom type name '%s' is not allowed because it is a reserved keyword", typeName)); this.typeName = typeName; }
CreateType(String keyspaceName, String typeName) { validateNotEmpty(keyspaceName, "Keyspace name"); validateNotEmpty(typeName, "Custom type name"); validateNotKeyWord(keyspaceName, String.format("The keyspace name '%s' is not allowed because it is a reserved keyword", keyspaceName)); validateNotKeyWord(typeName, String.format("The custom type name '%s' is not allowed because it is a reserved keyword", typeName)); this.typeName = typeName; this.keyspaceName = Optional.fromNullable(keyspaceName); }
CreateType(String keyspaceName, String typeName) { validateNotEmpty(keyspaceName, "Keyspace name"); validateNotEmpty(typeName, "Custom type name"); validateNotKeyWord(keyspaceName, String.format("The keyspace name '%s' is not allowed because it is a reserved keyword", keyspaceName)); validateNotKeyWord(typeName, String.format("The custom type name '%s' is not allowed because it is a reserved keyword", typeName)); this.typeName = typeName; this.keyspaceName = Optional.fromNullable(keyspaceName); }